Skip to content

fix(ui): preview mode show the pr number#2018

Merged
ghostdevv merged 5 commits intonpmx-dev:mainfrom
btea:fix/mobile-show-pr-number
Mar 21, 2026
Merged

fix(ui): preview mode show the pr number#2018
ghostdevv merged 5 commits intonpmx-dev:mainfrom
btea:fix/mobile-show-pr-number

Conversation

@btea
Copy link
Contributor

@btea btea commented Mar 10, 2026

🔗 Linked issue

#1729

🧭 Context

#1729 Mobile devices are not handled.

📚 Description

@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Mar 21, 2026 2:35am
npmx.dev Ready Ready Preview, Comment Mar 21, 2026 2:35am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Mar 21, 2026 2:35am

Request Review

@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 10, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 396ec548-cfbe-4493-9bea-0555e54accf6

📥 Commits

Reviewing files that changed from the base of the PR and between e610314 and 3a21abd.

📒 Files selected for processing (4)
  • app/components/AppHeader.vue
  • i18n/locales/en.json
  • i18n/locales/zh-CN.json
  • i18n/schema.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • i18n/locales/en.json
  • app/components/AppHeader.vue

📝 Walkthrough

Walkthrough

Modifies AppHeader.vue: removes the previous desktop PR link that rendered whenever prNumber was truthy; adds a PR badge/link that renders only when showLogo is true, !isSearchExpanded and prNumber is truthy; changes the PR link aria-label to use $t('header.pr', { prNumber }); and removes the explicit ms-2 margin class from the badge. Adds the header.pr translation key to i18n/locales/en.json and i18n/locales/zh-CN.json, and registers header.pr in i18n/schema.json.

Possibly related PRs

Suggested reviewers

  • danielroe
  • alexdln
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The PR description references issue #1729 about mobile device handling, which aligns with the code changes that relocate and conditionally display the PR badge to be visible on mobile when search is not expanded.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2637e916-c5c3-4b24-ad6c-535dcfbf0a80

📥 Commits

Reviewing files that changed from the base of the PR and between 99c9533 and ffa05b4.

📒 Files selected for processing (1)
  • app/components/AppHeader.vue

@github-actions
Copy link

github-actions bot commented Mar 10, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
i18n/locales/en.json Source changed, localizations will be marked as outdated.
i18n/locales/zh-CN.json Localization changed, will be marked as complete. 🔄️
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

class="sm:hidden"
>
<span class="text-xs px-1.5 py-0.5 rounded badge-green font-sans font-medium ms-2">
PR #{{ prNumber }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we're internationalizing this feature, maybe "PR" should be translated as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, those who see this information on the page are usually redirected through a Premiere Pro (PR) preview link. I assume that those familiar with these operations are developers, and based on this assumption, PR seems to be a very clear abbreviation, so I don't think it needs to be translated.

Of course, if you feel this reason is insufficient, we can continue to discuss it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Premiere Pro

What xD

if we're internationalizing this feature, maybe "PR" should be translated as well?

I think it's ok not being translated, I couldn't find it anywhere else translated, or with the current desktop version of this feature - but we can always translate it in a follow up!

@ghostdevv ghostdevv added this pull request to the merge queue Mar 21, 2026
Merged via the queue into npmx-dev:main with commit c45e5ef Mar 21, 2026
20 checks passed
@btea btea deleted the fix/mobile-show-pr-number branch March 21, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants